<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2018/11/14
 * Time: 10:58
 * name:新增专家回答附件
 * url:/erpSpecialist/add_specialist_answer_attachment
 */


$osaa_type  = $route->bodyParams['osaa_type'];      //附件的类型 0-excel 1-word 2-PowerPoint 3-mp3 4-mp4 5-txt 6-其他
$osaa_url   = $route->bodyParams['osaa_url'];       //附件的地址
$osaa_osaid = $route->bodyParams['osaa_osaid'];     //关联的问题ID
$osaa_name  = $route->bodyParams['osaa_name'];      //附件名称

//写入数组
$insertArr = [
    'osaa_type'  => $osaa_type,
    'osaa_url'   => $osaa_url,
    'osaa_osaid' => $osaa_osaid,
    'osaa_name'  => $osaa_name,
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_specialist_answer_attachment",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );